include ../Makefile.shared

define PROJ_mn
  SOURCES = mnParseTypes.ml mnParser.mly mnLexer.mll varstate.ml \
           factor.ml uaiFormat.ml mn.ml mn.mli
  RESULT = mn
endef
export PROJ_mn

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = mn
endif

export LIBS=str ext

# Default target to use
all: ncl
	cp mn.cmi mn.cmxa mn.a $(SRCLIBDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
